import fetch from '@/config/fetch';
import * as hf from './tempData/hfList'
/**
 * 创建临时数据
 */
const setpromise = data => {
    return new Promise((resolve, reject) => {
        resolve(data)
    })
}

if (process.env.NODE_ENV != 'development') {
    var testData = (_pageIndex) => fetch('POST', '/vdms/carsale/GetHfList', {
        pageIndex: _pageIndex
    })
} else {
    var testData = (_pageIndex) => setpromise(hf.test);
}

export { testData }